<?php
/* @var $this EmployeeController */
/* @var $model Employee */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'employee-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_lname'); ?>
		<?php echo $form->textField($model,'employee_lname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'employee_lname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_fname'); ?>
		<?php echo $form->textField($model,'employee_fname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'employee_fname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_mname'); ?>
		<?php echo $form->textField($model,'employee_mname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'employee_mname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_telnum'); ?>
		<?php echo $form->textField($model,'employee_telnum',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'employee_telnum'); ?>
	</div>
	
		<div class="row">
		<?php echo $form->labelEx($model,'employee_username'); ?>
		<?php echo $form->textField($model,'employee_username',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'employee_mname'); ?>
	</div>
	
		<div class="row">
		<?php echo $form->labelEx($model,'employee_password'); ?>
		<?php echo $form->passwordField($model,'employee_password',array('size'=>45,'maxlength'=>255 ,  'beforeSave')); ?>
		<?php echo $form->error($model,'employee_password'); ?>
	</div>
	
		<div class="row">
       
		 <?php echo $form->labelEx($model,'employee_usertype'); ?> <?php echo $form->dropDownList($model,'employee_usertype',array 
		("Admin"=>"Admin", "Manager"=>"Manager","Personnel"=>"Personnel") 

   	 	,array('empty'=>'Select an employee type')); ?>

        	<?php echo $form->error($model,'employee_usertype'); ?> 

	</div>




	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
